import * as http from 'http';

/**
 * 创建一个web 服务器
 */
const server = http.createServer((req, res)=>{
    res.end('hello world');
});

/**
 * start this server
 */
server.listen(8080);

